Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ผมสร้างรูปวงกลมด้วย css ทำให้มันหมุน แต่ผมอยากให้มีข้อความยุตรงกลางวงกลมจะทำอย่างไรครับ



 

ผมสร้างรูปวงกลมด้วย css ทำให้มันหมุน แต่ผมอยากให้มีข้อความยุตรงกลางวงกลมจะทำอย่างไรครับ

 



Topic : 092214



โพสกระทู้ ( 32 )
บทความ ( 0 )



สถานะออฟไลน์




Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style>
/* Create the animation blocks */

.circle {
	border-radius: 50%;
	width: 200px;
	height: 200px; 
	/* width and height can be anything, as long as they're equal */
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
/* Create the animation blocks */
@-webkit-keyframes spin {
from { -webkit-transform: rotate(0deg); }
to { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes spin {
from { -moz-transform: rotate(0deg); }
to { -moz-transform: rotate(360deg); }
}
@-ms-keyframes spin {
from { -ms-transform: rotate(0deg); }
to { -ms-transform: rotate(360deg); }
}
/* Spinning, gradient circle; CSS only! */
#advanced {
	display:block;
	width:50px;
	height:50px;
		font-size:20px;
	color:#fff;
	line-height:50px;
	text-shadow:0 1px 0 #666;
	text-align:center;
	text-decoration:none;
background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);
background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
/* webkit chrome, safari, mobile */
-webkit-animation-name: spin;
-webkit-animation-duration: 3s; /* 3 seconds */
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
/* mozilla ff */
-moz-animation-name: spin;
-moz-animation-duration: 3s; /* 3 seconds */
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
/* microsoft ie */
-ms-animation-name: spin;
-ms-animation-duration: 3s; /* 3 seconds */
-ms-animation-iteration-count: infinite;
-ms-animation-timing-function: linear;
}
a{
	/* webkit chrome, safari, mobile */
-webkit-animation-name: none;

/* mozilla ff */
-moz-animation-name: none;


/* microsoft ie */
-ms-animation-name: none;

}
</style>
</head>

<body>
<div id="advanced" class="circle" ><a>1</a></div>
</body>
</html>



มีวิธีที่ทำให้ tag อื่นเอาไว้บน tag div ได้ไหมครับ หรือมีวิธีแก้อย่างไรได้บ้างครับ เพราะผมใส่ข้อความไป ข้อความก้หมุนด้วย



Tag : PHP, HTML/CSS









ประวัติการแก้ไข
2013-03-11 15:28:22
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-03-11 15:22:09 By : sailorfah View : 5866 Reply : 1
 

 

No. 1



โพสกระทู้ ( 913 )
บทความ ( 2 )



สถานะออฟไลน์
Facebook

Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style>
/* Create the animation blocks */

.circle {
	border-radius: 50%;
	width: 200px;
	height: 200px; 
	/* width and height can be anything, as long as they're equal */
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
/* Create the animation blocks */
@-webkit-keyframes spin {
from { -webkit-transform: rotate(0deg); }
to { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes spin {
from { -moz-transform: rotate(0deg); }
to { -moz-transform: rotate(360deg); }
}
@-ms-keyframes spin {
from { -ms-transform: rotate(0deg); }
to { -ms-transform: rotate(360deg); }
}
/* Spinning, gradient circle; CSS only! */
#advanced {
	z-index:-99;
	display:block;
	position:absolute;
	width:50px;
	height:50px;
	font-size:20px;
	color:#fff;
	line-height:50px;
	text-shadow:0 1px 0 #666;
	text-align:center;
	text-decoration:none;
	background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
	background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);
	background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
	/* webkit chrome, safari, mobile */
-webkit-animation-name: spin;
	-webkit-animation-duration: 3s; /* 3 seconds */
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
	/* mozilla ff */
-moz-animation-name: spin;
	-moz-animation-duration: 3s; /* 3 seconds */
	-moz-animation-iteration-count: infinite;
	-moz-animation-timing-function: linear;
	/* microsoft ie */
-ms-animation-name: spin;
	-ms-animation-duration: 3s; /* 3 seconds */
	-ms-animation-iteration-count: infinite;
	-ms-animation-timing-function: linear;
	left: 22px;
	top: 16px;
}
a{
	/* webkit chrome, safari, mobile */
-webkit-animation-name: none;

/* mozilla ff */
-moz-animation-name: none;


/* microsoft ie */
-ms-animation-name: none;

}
div.text1{
	font-size:15px;
	margin-left:10px;
	text-align:center;
	width:50px;
	height:50px;
	
	
	
	
		
}
</style>
</head>

<body>
<div class="text1"><div id="advanced" class="circle" ></div><div style="padding-top:25px;padding-left:5px;">1</div></div>
</body>
</html>








แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-03-12 10:01:58 By : teez1232002
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ผมสร้างรูปวงกลมด้วย css ทำให้มันหมุน แต่ผมอยากให้มีข้อความยุตรงกลางวงกลมจะทำอย่างไรครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่