Using JS to implement CSS fillet generation update _javascript skills

Source: Internet
Author: User
Use JS to generate any rounded corners, the next step is to join the right angle guide angle, round the guide, outside the rounded corner guide, there are border processing, shadow generation, and soft treatment are the focus and difficulties.
<div id= "Modul" > <div id= "Contentbox" > <div id= "Content" > Middle-and-far-away scholar-bureaucrats and literati-bureaucrats have a variety of tricks to test. I don't want to believe in the master of Works. Fu Harsh seize the work of the literati and the pattern of the molding machine to win the heavy chess and the pattern of the molding machine to win the game of the work of the basic people are still missing the scholar-bureaucrat to take all the tricks of the people to test some I do not want to believe that the workers chef the scholar-bureaucrat pattern is full of molding machine to win the game of chess and the pattern of the molding machine seized chess </div></div> </div> <script type= "Text/javascript" > Makeroalj ("Modul", "Contentbox", 60,400) ; function Makeroalj (modulid,contentid,r,width) {this.setr=r; var Yj=document.getelementbyid (modulid); Yj.style.position= "relative"; yj.style.width=width?width+ "px": "100%"; Yj.style.overflow= "hidden"; var Contentbox=document.getelementbyid (ContentID); contentbox.style.position= "Absolute"; for (y=this.setr;y>=1;y--) {var l=document.createelement ("div"); SetStyle (L,y); Yj.appendchild (l); var box=document.createelement ("div"); Box.style.backgroundcolor= "#FFCC00"; Yj.appendchild (box); for (y=1;y<=this.setr;y++) {var l=document.createelement ("div"); SetStyle (l,y); Yj.appendchild (l); } box.style.height= (contentbox.clientheight-this.setr*2) + "px"; Set style function SetStyle (obj,y) {l.innerhtml= " "; L.style.height= "1px"; L.style.overflow= "hidden"; L.style.backgroundcolor= "#FFCC00"; l.style.margin= "0" + (This.setr-math.floor (math.sqrt (this.setr*this.setr-y*y)) + "px"; }} </script>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.